package com.jandan.ui.client;

import com.google.gwt.core.client.GWT;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.ColumnLayout;
import com.gwtext.client.widgets.layout.ColumnLayoutData;

public class LinkedBarPanel extends Panel {
//	Panel leftPanel = new Panel();
//	Panel centerPanel = new Panel();
//	Panel rightPanel = new Panel();
	public LinkedBarPanel(){
		this.setCls("linked-bar-panel");
		this.setLayout(new ColumnLayout());
		this.setHeight(26);
		String url = GWT.getModuleBaseURL() + "/signoff.htm";
		this.setHtml("<div class='linkedbar'><a href='index.htm' target=' '>首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='blog.htm' target=' '>博客</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='profile.htm' target=' '>用户信息</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='" + url + "'>退出</a><div>");
		this.setBorder(true);
		this.createComponent();
	}
	
	private void createComponent(){
//		leftPanel = new Panel();
//		leftPanel.setWidth(250);
//		leftPanel.setBorder(false);
//		
//		centerPanel = new Panel();
//		centerPanel.setBorder(false);
//		centerPanel.setCls("center-panel");
//		centerPanel.setHtml("<div class='align-center' id='msg'>abcd</div>");
//		rightPanel = new Panel();
//		rightPanel.setBorder(false);
//		rightPanel.setWidth(250);
//		
//		String url = GWT.getModuleBaseURL() + "/signoff.htm";
//		rightPanel.setHtml("<div class='linkedbar'><a href='index.htm'>首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='blog.htm'>博客</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='profile.htm'>用户信息</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='" + url + "'>退出</a><div>");
//	
//		   
//        this.add(leftPanel);   
//        this.add(centerPanel, new ColumnLayoutData(1));   
//        this.add(rightPanel);   
	}
}
